/**
 * Created by lvlq on 16/3/19.
 */
var Sequelize = require("sequelize");
var sequelize = Util("sequelize");

module.exports = sequelize.define("log", {
    error: {
        type: Sequelize.TEXT,
        field: "error",
        allowNull: false,
    },
    response: {
        type: Sequelize.TEXT,
        field: "response",
        allowNull: false,
    },
    body: {
        type: Sequelize.TEXT,
        field: "body",
        allowNull: false,
    },
    data: {
        type: Sequelize.TEXT,
        field: "data",
        allowNull: false,
    }
}, {
    comment: "Log"
});